package com.cx.mapper;

import com.cx.pojo.GroupGoods;
import com.cx.pojo.GroupGoodsExample;
import com.cx.vo.GroupGoodsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GroupGoodsMapper {
    int countByExample(GroupGoodsExample example);

    int deleteByExample(GroupGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GroupGoods record);

    int insertSelective(GroupGoods record);

    List<GroupGoods> selectByExample(GroupGoodsExample example);

    GroupGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GroupGoods record, @Param("example") GroupGoodsExample example);

    int updateByExample(@Param("record") GroupGoods record, @Param("example") GroupGoodsExample example);

    int updateByPrimaryKeySelective(GroupGoods record);

    int updateByPrimaryKey(GroupGoods record);

    List<GroupGoodsVO> selectAll();

    Integer updateGroupNumber(Integer groupGoodId);

    List<GroupGoodsVO> searchByGroupGoodName(String groupGoodName);
}